#define _CRT_SECURE_NO_WARNINGS 1

int main()
{
    int n = 0;
    int re = 0;
    if (n == 0)
        printf("0");
    else if (n == 1)
        printf("1");
    else
    {
        dectobin(n / 2);
        re = n % 2;
        printf("%d", re);
    }
    return 0;
}